package com.bjpowernode.mvc.model.param;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserParam {
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式错误")
    private String phone;
    @NotNull(message ="密码不能为空")
    @Size(min = 32,max = 32,message = "密码长度不足")
    private String secret;
    @NotNull(message = "验证码不能为空")
    @Size(min=5,max=5,message = "验证码是五位数字")
    private String code;
}
